<template>
	<layout>
	<div class="aaaa">
	<h1> 业务登记</h1>
	<h2>{{ myData }}</h2>
	</div>
	<div class="aadd">
		<div></div>
		<div></div>
		<div></div>

	</div>
	<div class="button">
	<el-button type="primary">新增项目</el-button>
	</div>
	
	</layout>

</template>

<script>
	import Layout from './new.vue'
	import axios from 'axios'


	export default {
		data () {
			return {
				myData : ''
			}
		},
 	components: {
 		Layout
 	},
 	methods:{
 		httpMy () {
 			return axios.get('/api/users/list').then(function(r){
 				console.log(r);
				return  JSON.stringify(r).toString();
		    }).catch(function(error){
		      console.log(error);
	        });
 		}
 		
 	},mounted () {
 		
 			let mv = this;
 			// let  p = {
 			// 	url: '/api/users/list'
 			// };
 		    axios.get('/api/users/list').then(function(r){
 	 	    	console.log(r.data.errmsg);
 		    	mv.myData = r.data.errmsg;
		    }).catch(function(error){
		      console.log(error);
	        });
 	    
 	}
 }
</script>
<style >
	.aadd{
    overflow: hidden;
    width: 100%;
    max-width: 100%;
    background-color: #fff;
    border: 1px solid #dfe6ec;
    font-size: 14px;
    color: #1f2d3d
	},
	.aaaa{
	padding: 11px 19px;
	font-size: 16px;
	border-radius: 4px
	

	}


</style>